package org.crawler.task;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

import org.crawler.taskobj.WebUrl;
import org.springframework.stereotype.Component;

@Component
public class FreshUrlMap {
	
	private Map<String,WebUrl> freshUrlMap;
	

	public FreshUrlMap()
	{
		freshUrlMap=new ConcurrentHashMap<String,WebUrl>();
	}

	public Map<String, WebUrl> getFreshUrlMap() {
		return freshUrlMap;
	}



	public void setFreshUrlMap(Map<String, WebUrl> freshUrlMap) {
		this.freshUrlMap = freshUrlMap;
	}



	public void setFreshUrlSet(Set<WebUrl> freshUrlSet) {
		this.freshUrlMap = freshUrlMap;
	}
	

	
	

}
